<style type="text/css">
body{
	width: 100%;
	margin: 0;
	background: grey;
}
.container {
    width: 75%;
    height: 300px;
    margin: 75px 10% 0;
    background: white;
    box-shadow: 10px 10px 15px black;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: column;

}
.button{
    display: block;
    width: 80px;
    font-size: 35px;
    text-decoration: none;
    height: 45px;
    color: #fff !important;
    text-transform: uppercase;
    background: #60a3bc;
    padding: 20px;
    border-radius: 50px;
    border: none;

}
.button:hover {
    text-shadow: 0px 0px 6px rgba(255, 255, 255, 1);
    -webkit-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
    -moz-box-shadow: 0px 5px 40px -10px rgba(0,0,0,0.57);
    transition: all 0.4s ease 0s;
}
table.blueTable {
    border: 1px solid #1C6EA4;
    background-color: #EEEEEE;
    width: 60%;
    margin-top: 10px;
    text-align: left;
    border-collapse: collapse;

}
table.blueTable td, table.blueTable th {
    border: 1px solid #AAAAAA;
    padding: 3px 2px;

}
table.blueTable td {
    font-size: 13px;

}
table.blueTable tr:nth-child(even) {
    background: #D0E4F5;

}
table.blueTable thead {
    background: #1C6EA4;
    background: -moz-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    background: -webkit-linear-gradient(top, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    background: linear-gradient(to bottom, #5592bb 0%, #327cad 66%, #1C6EA4 100%);
    border-bottom: 2px solid #444444;

}
table.blueTable:first-child thead th {
    font-size: 15px;
    font-weight: bold;
    color: #FFFFFF;
    border-left: 2px solid #D0E4F5;

}
table.blueTable thead th:first-child {
    border-left: none;

}
</style>
<%@ page import="java.nio.charset.StandardCharsets" %>
<%@ page import="java.util.Map" %>
<%@page contentType="text/html" %>
<%@page pageEncoding="UTF-8" %>
<div class="container">
    <div>
<% if(session.getAttribute("Login") == null){%>
  <a class="button" href="https://cas.dgut.edu.cn?appid=javaee">登录</a>
  <%}else {%>
  <a class="button" href="https://cas.dgut.edu.cn/logout?callback=http://localhost:8080/logout">退出</a>
    </div>
  <table class="blueTable">
      <thead>
    <tr>
      <th>Key</th>
      <th>content</th>
    </tr>
      </thead>
      <tbody>
  <%
  Map <String, String>message =(Map<String,String>)session.getAttribute("Login");
  for(String Key: message.keySet())
  {%>
    <tr>
  <td><%=Key%></td>
  <td><%=message.get(Key)%></td>
    </tr>
  <%}%>
      </tbody>
  </table>
  <%}%>
</div>
